<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <base target="_blank"/>
    <title>内置服务</title>
    <script src="plugin/angular.min.js"></script>

    <script>

        var app = angular.module('httpApp', []);
        //$http是angular内置请求http的对象
        app.controller('httpController', function ($scope, $http) {
            $scope.getAllChar = function () {
                $http.get("http://localhost:8111/ssm/anno/list.do").success(function (response) {
                    alert(1)
                    $scope.res = response;
                });
            }
        });

    </script>
</head>


<body ng-app="httpApp" ng-controller="httpController" ng-init="getAllChar()">

<!--循环数组-->
<table>
    <tr ng-repeat="x in res">
        <td>{{x}}</td>
    </tr>
</table>

</body>
</html>